package com.bsoft.gol.hcs.specialist.bean.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotEmpty;;
import org.atag.dao.model.PageQo;

import java.util.Date;

/**
 * @Author:FangZhiyi
 * @Description
 * @Data Created in 2020/10/13 10:27
 * @Moddified By:
 */
public class RueryHistoryMessageReq extends PageQo {
    //消息发送者用户ID
    @NotEmpty(message = "消息发送者用户ID不能为空")
    private String fromUserId;
    //消息发送对象用户ID（群组调通为群组ID）
    @NotEmpty(message = "息发送对象标识不能为空")
    private String toUserId;
    //消息发送开始时间(格式：yyyy-MM-dd)
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh_CN", timezone = "GMT+8")
    private Date startDate;
    //消息发送结束时间(格式：yyyy-MM-dd)
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh_CN", timezone = "GMT+8")
    private Date endDate;

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "{\"RueryHistoryMessageReq\":{"
                + "\"fromUserId\":\""
                + fromUserId + '\"'
                + ",\"toUserId\":\""
                + toUserId + '\"'
                + ",\"startDate\":\""
                + startDate + '\"'
                + ",\"endDate\":\""
                + endDate + '\"'
                + "},\"super-RueryHistoryMessageReq\":" + super.toString() + "}";

    }
}
